//
//  NSData+DataCache.h
//  lc-collect
//
//  Created by mac on 2021/3/3.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSData (DataCache)

/// 将URL作为key保存到磁盘里缓存起来
/// @param identifier url.absoluteString
- (void)lc_saveDataCacheWithIdentifier:(NSString *)identifier;

/// 取出缓存data
/// @param identifier url.absoluteString
+ (NSData *)lc_getDataCacheWithIdentifier:(NSString *)identifier;


@end

NS_ASSUME_NONNULL_END
